<template>
  <div>
    <div>
      <h4>VAS评分</h4>
      <el-row>
        <el-col>
          <div>
            <span>疼痛 </span>
            <el-select v-model="pgForm.vas_score_pain" placeholder="请选择" style="width: 100px">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
            <span> 分</span>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "vas_score",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options: [{
        value: '0',
        label: '0',
      }, {
        value: '1',
        label: '1',
      }, {
        value: '2',
        label: '2',
      }, {
        value: '3',
        label: '3',
      }, {
        value: '4',
        label: '4',
      }, {
        value: '5',
        label: '5',
      }, {
        value: '6',
        label: '6',
      }, {
        value: '7',
        label: '7',
      }, {
        value: '8',
        label: '8',
      }, {
        value: '9',
        label: '9',
      }, {
        value: '10',
        label: '10',
      }],
      pgForm: {
        vas_score_pain: '',
      },
    }
  }
}
</script>

<style scoped>

.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-select{
  width: 50%;

}

</style>
